import request from "@/utils/request.js";

export const listInfo= (params) =>request.get('/api/hotel/checkin/list',{params})

export const updateCheckin = (obj) => request.put('/api/hotel/checkin/update',obj)

export const insertCheckin = (obj) => request.post('/api/hotel/checkin/insert',obj)

export const getState= (params) =>request.get('/api/hotel/checkin/state',{params})

export const deleteCheckin = (obj) => request.put('/api/hotel/checkin/delete',obj)

export const checkinList= (params) =>request.get('/api/hotel/checkin/admin/list',{params})

export const checkinDelete= (id) =>request.delete('/api/hotel/checkin/admin/delete/'+id)

export const checkinInsert = (obj) => request.post('/api/hotel/checkin/admin/insert',obj)

export const checkinUpdate = (obj) => request.put('/api/hotel/checkin/admin/update',obj)